<template>
  <div class="test">
    <div>
      <el-table
          ref="multipleTable"
          :data="info.data"
          tooltip-effect="dark"
          style="width: 100%"
          max-height="850"
          stripe
          border
      >
        <el-table-column
            prop="good_id"
            label="ID"
            width="75">
        </el-table-column>
        <el-table-column
            prop="good_name"
            label="姓名"
            width="160">
        </el-table-column>
        <el-table-column
            prop="inventory"
            label="库存"
            width="120">
        </el-table-column>
        <el-table-column
            prop="sort"
            label="种类"
            width="120">
        </el-table-column>
        <el-table-column
            prop="price"
            label="价格"
            width="120">
        </el-table-column>
        <el-table-column
            prop="inventory"
            label="地址"
            show-overflow-tooltip>
        </el-table-column>
        <el-table-column
            fixed="right"
            label="操作"
            width="300">
          <template #default="scope">
            <el-button
                size="mini"
                @click="handleEdit(scope.$index, scope.row)">确认上架</el-button>
            <el-button
                size="mini"
                type="danger"
                @click="handleDelete(scope.$index)">取消上架</el-button>
          </template>
        </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>


export default {
  data() {
    return {
      info: 'Ajax 测试!!'
    }
  },

}
</script>

<style scoped>

</style>